package com.qriver.cloud.consumer;

import com.qriver.cloud.consumer.feign.FeignApiClient;
import com.sun.istack.internal.logging.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FeignController {

    Logger logger = Logger.getLogger(FeignController.class);

    @Autowired
    private FeignApiClient feignApiClient;

    @RequestMapping("/feignApi")
    public String feignApi() {
        logger.info("执行消费者FeignController的feignApi()方法！");
        return feignApiClient.provider();
    }

}
